﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RetingManager
{
    public delegate void SetData(string lib,string classname);

    public partial class PlugAdd : Form
    {
        public SetData setdata;
        public PlugAdd()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (setdata != null)
            {
                setdata(LibBox.Text, ClassBox.Text);
            }
            this.Close();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        private void button3_Click(object sender, EventArgs e)
        {
            openFileDialog1.ShowDialog();
        }
        private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
        {
            LibBox.Text = openFileDialog1.FileName;
        }
    }
}
